<template>
	<zh-result :title="data.errorMsg" subTitle="请关闭页面重新进入" :showBtn="true" btnText="关闭页面" @click="gotoClose"></zh-result>
</template>

<script lang="ts" setup>
	import {ref, reactive,computed} from "vue";
	import { onLoad } from "@dcloudio/uni-app";
	onLoad((options:any) => {
		if(options.errorMsg){
			data.errorMsg=options.errorMsg
		}
	})
	const data = reactive({
		errorMsg:"系统异常"
	})
	const gotoClose=()=>{
		try {
		  ZWJSBridge.close().then((result) => {
		    console.log(result);
		  }).catch((error) => {
		    console.log(error);
		  });
		} catch (e) {
		}
		try {
		  AlipayJSBridge.call('closeWebview')
		} catch (e) {
		  console.log(e)
		}
	}
</script>

<style>
</style>